<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="../template/template.xhtml">
	
	<ui:define name="corpo">

		<h:form id="form">
			<p:dialog id="dialog_teste" header="Cadastro de Veículos"
				widgetVar="dialog" visible="true" styleClass="dialog" width="950"
				height="400">

				<fieldset>
					<legend>Ações</legend>

					<p:commandLink title="Adicionar Veículo">
						<p:graphicImage value="../imagens/icone_adicionar.png" styleClass="icones" />
					</p:commandLink>

					<p:spacer width="2%" />

					<p:commandLink title="Pesquisar Veículo">
						<p:graphicImage value="../imagens/icone_pesquisar.png" styleClass="icones" />
					</p:commandLink>

				</fieldset>

				<br />

				<fieldset>
					<legend>Formulário de Inclusão</legend>

					<ui:insert name="formulario" />

				</fieldset>

				<br />

				<div style="text-align: center; width: 100%">
					<p:commandButton value="Incluir" actionListener="#{#con}" styleClass="button" />
					<p:button value="Alterar" styleClass="button" />
					<p:button value="Excluir" styleClass="button" />
					<p:button value="Limpar" styleClass="button" />
				</div>

				<br />

				<ui:insert name="tabela_dados" />

			</p:dialog>
		</h:form>
	</ui:define>
</ui:composition>

</html>